package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.domain.mongo.Video;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface VideoCommentService {
    // 保存comment
    Integer saveComment(Comment comment);

    // 删除comment
    Integer removeComment(ObjectId publishId, Long userId, Integer commentType);
    //视频评论分页查询
    PageBeanVo findCommentByPage(ObjectId publishId, Integer commentType, Integer pageNum, Integer pageSize );

    //平论id
    Comment findById(ObjectId publishId);
}
